package StudyCode.summary.myfile;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class ReadAllContent {
	public static void main(String[] args) throws IOException {
		Path path = Paths.get("E:/Copy/test.txt");
		byte[] contents = Files.readAllBytes(path);

		for (byte b : contents) {
			System.out.print((char) b);
		}
	}
}
